package cn.edu.ctgu.junitTest;
import static org.junit.jupiter.api.Assertions.*;

import java.util.List;

import org.junit.jupiter.api.Test;

class LinkedListTest {

	@Test
	void should_remove_first_null_element_when_remove_null() {
		//arrange
		List<String> list = new LinkedList<>();
		list.add(null);
		list.add(null);
		
		//act
		list.remove(null);
		
		//assert
		assertEquals(1,list.size());
	}
}
